#include<iostream>
#include<unordered_map>
using namespace std;

class Solution {
public:
    unordered_map<int, int>mp;
    bool digitCount(string num) {
        for (int i = 0; i < num.length(); i++) {
            if (!mp.count(num[i] - '0')) {
                mp[num[i] - '0'] = 1;
            } else {
                mp[num[i] - '0']++;
            }
        }
        for (int i = 0; i < num.length(); i++) {
            if (mp[i] != num[i] - '0') {
                return false;
            }
        }
        return true;
    }
};

int main() {
    return 0;
}

/**
 * 2023.1.11
 * 模拟
 * 加油，新的开始
*/